package com.halflife.comeElectricity.member.rider;

import com.halflife.framework.domain.BaseDomain;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

import java.util.Date;

@QueryAnn(mainTitle = "基础信息管理",title = "集团管理",table = "t_activateLog")
public class ActivateLog extends BaseDomain {
    @Test
    public void generate()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildAll(this.getClass());
    }
    @Test
    public void generateUpdate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
    }
    @QueryAnn("骑手Id")
    private Integer riderId;
    @QueryAnn("骑手名称")
    private String riderName;
    @QueryAnn("手机号码")
    private String phone;
    @QueryAnn(value = "是否有效")
    private Boolean valid;
    @QueryAnn("备注")
    private String memo;
    @QueryAnn("充值日期")
    private Long createDate;
    @QueryAnn("开始日期")
    private Long beginDate;
    @QueryAnn("过期日期")
    private Long endDate;
    @QueryAnn("状态")
    private Integer status;
    @QueryAnn("类型")
    private String catagory;
    @QueryAnn(value = "集团Id",refered = true)
    private Integer companyId;
    @QueryAnn(value = "名称", operate = "like",refered = true)
    private String companyName;

    public void init(){
        this.valid=true;
        this.createDate = new Date().getTime();
        this.status = 0;
    }
    public Integer getRiderId() {
        return riderId;
    }

    public void setRiderId(Integer riderId) {
        this.riderId = riderId;
    }

    public String getRiderName() {
        return riderName;
    }

    public void setRiderName(String riderName) {
        this.riderName = riderName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public Boolean getValid() {
        return valid;
    }

    @Override
    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public Long getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Long beginDate) {
        this.beginDate = beginDate;
    }

    public Long getEndDate() {
        return endDate;
    }

    public void setEndDate(Long endDate) {
        this.endDate = endDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCatagory() {
        return catagory;
    }

    public void setCatagory(String catagory) {
        this.catagory = catagory;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}
